package com.example.demo.services;

import com.example.demo.dao.StockMapper;
import com.example.demo.entity.Stock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


public interface StockService {

    int initDBBefore();

    int addStock(Stock stock);

    int addStackWithOptimisticLock(Stock stock);

    Stock selectByID(int id);

    List<Stock> selectAll();
}